home *** CD-ROM | disk | FTP | other *** search
/ Robotics & Artificial Int…3 (Professional Edition) / Robotics & Artificial Intelligence Tools 2003 (Professional Edition).iso / neural network tool and application / nsinstall.exe / data1.cab / CodeGen_Files / EXAMPLES / MAINMENU / MAINMENU.CPP next >
Encoding:
C/C++ Source or Header  |  2002-03-08  |  652 b   |  25 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. main ()
  5. {    int        response = 1;
  6.  
  7.     while ((response > 0) && (response < 4)) {
  8.         printf("XOR network choices:\n");
  9.         printf("\n");
  10.         printf("\t1) Recall network using keyboard for input\n");
  11.         printf("\t2) Recall network using ASCII file for input\n");
  12.         printf("\t3) Training network using ASCII files for input and desired\n");
  13.         printf("\t4) Exit\n");
  14.         printf("\n");
  15.         printf("Enter selection:\n");
  16.         scanf("%d",&response);
  17.         char systemCommand[128];
  18.         if ((response > 0) && (response < 4)) {
  19.                 sprintf(systemCommand,"xor%d.exe",response);
  20.                 system(systemCommand);
  21.         }
  22.     }
  23.     return 0;
  24. }
  25.